import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'AccurateSizedBox.dart';
import 'CustomCenterLayoutWidget.dart';
import 'LeftRightBox.dart';


class LayoutOperatorLearing extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Material(
      child: SingleChildScrollView(
        child: Column(
          children: [
            TextButton(
              child: Text("自定义控件居中的widget"),
              onPressed: () {
                var result = Navigator.push(context,
                    MaterialPageRoute(builder: (context) {
                  return CustomCenterDemoWidget();
                }));
              },
            ),

            TextButton(
              child: Text("自定义多控件左右贴边的widget"),
              onPressed: () {
                var result = Navigator.push(context,
                    MaterialPageRoute(builder: (context) {
                  return CustomMultiDemoWidget();
                }));
              },
            ),

            TextButton(
              child: Text("自定义控件子控件大小"),
              onPressed: () {
                var result = Navigator.push(context,
                    MaterialPageRoute(builder: (context) {
                  return AccurateSizedBoxRoute();
                }));
              },
            ),

          ],
        ),
      ),
    );
  }
}
